//
//  BIBluetoothDeviceModel.m
//  BIBluetoothModule
//
//  Created by Yown on 2024/1/22.
//

#import "BIBluetoothDeviceModel.h"

@implementation BIBluetoothDeviceModel

- (instancetype)init {
    self = [super init];
    if (self) {
        self.recevierBattery = -1;
        self.microphoneFirstBattery = -1;
        self.microphoneSecondBattery = -1;
    }
    return self;
}

- (void)parserData:(NSData *)data {
    
}

- (void)setRecevierBattery:(NSInteger)recevierBattery {
    _recevierBattery = recevierBattery;
    if (recevierBattery > 100) {
        _recevierBattery = -1;
    }
}

- (void)setMicrophoneFirstBattery:(NSInteger)microphoneFirstBattery {
    _microphoneFirstBattery = microphoneFirstBattery;
    if (microphoneFirstBattery > 100) {
        _microphoneFirstBattery = -1;
    }
}

- (void)setMicrophoneSecondBattery:(NSInteger)microphoneSecondBattery {
    _microphoneSecondBattery = microphoneSecondBattery;
    if (microphoneSecondBattery > 100) {
        _microphoneSecondBattery = -1;
    }
}

@end
